<?php
namespace Auth\Controller;
use Todo\Controller\BaseController;

class IndexController extends BaseController {

    /**
     * 登录页面
     */
    public function login(){
        $this->display();
    }

    /**
     * 退出
     */
   public function logout(){
       session('[destroy]');
       redirect('/');
   }
}